<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:display="http://www.w3.org/1999/xhtml"
      xmlns:div.display="http://www.w3.org/1999/xhtml"
      xmlns:row.display="http://www.w3.org/1999/xhtml" lang="en">
<head>
    <meta charset="UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>loan</title>

    <!-- Bootstrap Core CSS -->
    <link th:href="@{/vendor/bootstrap/css/bootstrap.min.css}"
          href="../../static/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <link th:href="@{/vendor/metisMenu/metisMenu.min.css}" rel="stylesheet">

    <!-- Custom CSS -->
    <link th:href="@{/dist/css/sb-admin-2.css}" rel="stylesheet">

    <!-- Custom Fonts -->
    <link th:href="@{/vendor/font-awesome/css/font-awesome.min.css}" rel="stylesheet" type="text/css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>


<!-- Bootstrap Core JavaScript -->
    <script th:src="@{/vendor/jquery/jquery.min.js}" src="../../static/vendor/jquery/jquery.min.js"></script>
    <script th:src="@{/vendor/bootstrap/js/bootstrap.min.js}"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script th:src="@{/vendor/metisMenu/metisMenu.min.js}"></script>

    <!-- Custom Theme JavaScript -->
    <script th:src="@{/dist/js/sb-admin-2.js}"></script>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
        function check() {
            var userid = $("#userid").val();
            $("#fliuser").val(userid);

            var intcalf = $("#intcalf1").val();
            $("#intcalf").val(intcalf);


            var x = document.getElementsByClassName("form-control");
            var i;
            for (i = 0; i < x.length; i++) {
                x[i].disabled = false;
            }
            return true;

        }

    </script>


</head>
<body>

<div id="applySearch">
    <div class="col-lg-12 col-md-12 col-sm-12">
        <form name="loan" th:action="@{/loan(userid=${userid},bpm_no=${bpm_no})}" th:object="${popup_Loan}"
              method="post" onsubmit="return check()">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title">
                        <div class="row">
                            <div class="col-lg-1 col-md-1 col-sm-1">
                                <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">放款录入</a>
                            </div>
                            <div class="col-lg-1 col-md-1 col-sm-1">
                                <button type="submit" class="btn btn-primary">存储</button>
                            </div>
                            <div class="col-lg-1 col-md-1 col-sm-1">
                                <a href="/getPay?custcode=188688000007&&line_no=00001&&loanref=LN07426556581"
                                   target="_blank">
                                    <button class="btn btn-primary" type="button">还款查询</button>
                                </a>
                            </div>
                        </div>
                    </h4>
                </div>
                <div id="collapseOne" class="panel-collapse collapse in">
                    <div class="panel-body">


                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>贷款编号：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{refno}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>客户号：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{custcod}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>客户名称：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{cufulnm}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>客户地址1：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{wkcuad1}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>客户地址2：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{wkcuad2}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>客户地址3：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{wkcuad3}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>行号：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{branch}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>关联业务号：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{relref}">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>额度号：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{crline}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>合同编号：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{contrano}" required>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>合同签订日期：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <div class="input-group date">
                                        <div class="input-group-addon">
                                            <i class="fa fa-calendar"></i>
                                        </div>
                                        <input type="date" class="form-control" th:field="*{contradt}" required>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <br/>

                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>投向门类：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{menlei}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>投向大类：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{dalei}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>投向中类：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{zhonglei}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>投向小类：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{xiaolei}" disabled>
                                </div>
                            </div>
                        </div>
                        <br/>

                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>国家：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{country}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>客户经理代码：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{accoff}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>客户经理名称：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{accofname}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>方案类型（产品）：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{schtyp}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>放款日期：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <div class="input-group date">
                                        <div class="input-group-addon">
                                            <i class="fa fa-calendar"></i>
                                        </div>
                                        <input type="date" class="form-control" th:field="*{dwndate}" required>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>贷款币种：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{lnccy}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>贷款金额：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{lnamt}" disabled>
                                </div>
                            </div>
                        </div>
                        <br/>

                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>还款方式：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{rpymth}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>期数：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{instno}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>还款金额：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{instamt}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>固定浮动标识：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{inttype}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>利率类型：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{ratetyp}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>还款周期频率：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{rpyfeq}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>还款周期类型：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{rpyper}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>首次还款日：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <div class="input-group date">
                                        <div class="input-group-addon">
                                            <i class="fa fa-calendar"></i>
                                        </div>
                                        <input type="date" class="form-control" th:field="*{wpaydat}" required>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>贷款到期日：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{matdate}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>利率（%）：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{rate}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>调值：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{spread}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>调幅（%）：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{percenta}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>实际利率（%）：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{wtotrat}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>逾利率（日利率%）</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{wtotort}" disabled>
                                </div>
                            </div>

                        </div>

                        <div class="row">
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>担保抵押方式：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{collfalg}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>节假日还款方式：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{dueonhl}" disabled>
                                </div>
                            </div>

                        </div>

                        <div class="row">
                            <div class="col-lg-8 col-md-8 col-sm-8">
                                <div class="col-lg-2 col-md-2 col-sm-2">
                                    <label>还款次序：</label>
                                </div>
                                <div class="col-lg-2 col-md-2 col-sm-2">
                                    <input class="form-control" th:field="*{stlord1}" disabled>
                                </div>
                                <div class="col-lg-2 col-md-2 col-sm-2">
                                    <input class="form-control" th:field="*{stlord2}" disabled>
                                </div>
                                <div class="col-lg-2 col-md-2 col-sm-2">
                                    <input class="form-control" th:field="*{stlord3}" disabled>
                                </div>
                                <div class="col-lg-2 col-md-2 col-sm-2">
                                    <input class="form-control" th:field="*{stlord4}" disabled>
                                </div>
                                <div class="col-lg-2 col-md-2 col-sm-2">
                                    <input class="form-control" th:field="*{stlord5}" disabled>
                                </div>
                            </div>

                        </div>

                        <div class="row">
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>滞纳金方案：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{latchgs}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>罚金方案：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{penchgs}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>宽限期：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{grace}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>计息方式：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" id="intcalf1" th:value="*{rpymth}=='5'?'1':'2'"
                                           disabled>
                                    <!--<select class="form-control" th:value="*{rpymth}=='5'?'1':'2'" th:field="*{intcalf}"  disabled>-->
                                    <!--<option disabled selected value></option>>-->
                                    <!--<option value="1">固定本金计算</option>-->
                                    <!--<option value="2">余额减少</option>-->


                                    <!--</select>-->


                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>保证金：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{margin}" disabled>
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-4">
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                    <label>留购价款：</label>
                                </div>
                                <div class="col-lg-8 col-md-8 col-sm-8">
                                    <input class="form-control" th:field="*{lgamt}" disabled>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <input class="form-control" th:field="*{intbase}" disabled style="display:none">
                            <input class="form-control" th:field="*{prtrps}" disabled style="display:none">
                            <input class="form-control" th:field="*{wtotins}" disabled style="display:none">
                            <input class="form-control" id="intcalf" th:field="*{intcalf}" disabled
                                   style="display:none">
                            <input class="form-control" id="fliuser" th:field="*{fliuser}" disabled
                                   style="display:none">
                            <input class="form-control" id="userid" th:value="${userid}" disabled style="display:none">
                            <input class="form-control" id="bpm_no" th:value="${bpm_no}" disabled style="display:none">
                        </div>


                    </div>
                </div>
            </div>

        </form>
    </div>
</div>


</body>
</html>